package com.info.zhiduoduo.core.service;

import com.info.zhiduoduo.common.constants.SmartResult;
import com.info.zhiduoduo.repository.entity.crowdsource.CrowdsourceProject;
import com.info.zhiduoduo.repository.entity.crowdsource.OddJobRechargeRecord;

import java.math.BigDecimal;

/**
 * @author tianyonghong
 * @create 2023/2/23
 */
public interface CoreOddJobService {

    //根据充值申请 生成商户流水/修改商户余额
    SmartResult rechargeMerchantAndCreateFlowByRecharged(OddJobRechargeRecord rechargeRecord);

    //根据智零工发布的项目 生成商户流水/修改商户余额
    SmartResult rechargeMerchantAndCreateFlowByProjected(CrowdsourceProject crowdsourceProject);

    //创建充值记录，修改商户余额
    SmartResult createOddJobRechargeRecord(Integer merchantId, Integer partyId, Integer sourceId, String flowNo,
                                                  Integer flowType, BigDecimal flowAmount);
}
